package com.kongge.formlikedemo.check;

import com.kongge.formlike.service.check.CheckView;
import com.kongge.formlikedemo.view.DIYView;

/**
 * author:kongge
 * date:2018/7/23
 * layout:
 * description:
 */

public class DIYCheckView extends CheckView {

    @Override
    public String getCheckContent() {
        String content = super.getCheckContent();
        if (content != null) {
            return content;
        }
        if (view instanceof DIYView) {
            return ((DIYView) view).getText();
        }
        return content;
    }

}
